package com.zhuxiang.service.impl;

import com.zhuxiang.dao.ArticleDao;
import com.zhuxiang.domain.Article;
import com.zhuxiang.service.ArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class ArticleServiceImpl implements ArticleService {

    //注入articleDao
    @Autowired
    private ArticleDao articleDao;

    @Override
    public void save(Article article) {
        articleDao.save(article);
        //int i = 1/0;
    }
}
